Skip to main content

ByteOffsetBefore

Type

operator

Summary

Finds the first or last occurrence of Needle before a specified index in Target.

Syntax

the ( first | last ) offset of <Needle> before <Before> in <Target>

Description

The first (respectively last) offset of Needle in Target is number of bytes between the first byte of Target and the first (respectively last) occurrence of Needle before Before. If neither first or last is specified, then the last offset is found. If Needle does not occur before Before in Target, then the output is 0.

Parameters

NameTypeDescription

Needle

An expression which evaluates to binary data.

Target

An expression which evaluates to binary data.

Before

An expression which evaluates to a valid integer index of Target.

Thank you for your feedback!

Was this page helpful?